package org.fall.view.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.fall.view.model.po.MemberUserPO;

/**
 * @author sprogFall
 * @since 2021/4/13 16:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberUserVO {
    private Integer id;
    private String name;
    private String department;
    private String email;
    public static MemberUserVO convertPoToVo(MemberUserPO po) {
        MemberUserVO vo = new MemberUserVO();
        vo.setId(po.getId());
        vo.setName(po.getName());
        vo.setDepartment(po.getDepartment());
        vo.setEmail(po.getEmail());
        return vo;
    }
}
